
Version=1.5.0

.PHONY: all clean dist_clean

all:busybox.tar.gz

busybox.tar.gz: busybox-$(Version).tar.gz config
	tar -xzf busybox-$(Version).tar.gz
	rm -rf _install
	#$(MAKE) -C busybox-$(Version) defconfig 	# Create default config.
	cp -rf config busybox-$(Version)/.config	# Overwrite that config.
	$(MAKE) -C busybox-$(Version)
	$(MAKE) -C busybox-$(Version) install
	mv busybox-$(Version)/_install _install
	tar -czf busybox.tar.gz _install

clean:
	$(MAKE) -C busybox-$(Version) clean
	rm -rf busybox.tar.gz
	rm -rf _install
dist_clean:
	rm -rf *.tgz *.tar.gz busybox-$(Version) 
	

include ../Makefile.Res
